package com.accp.dao;

import com.accp.domain.Organization;
import com.accp.domain.OrganizationExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface OrganizationMapper {
	int countByExample(OrganizationExample example);

	int deleteByExample(OrganizationExample example);

	int deleteByPrimaryKey(Integer id);

	int insert(Organization record);

	int insertSelective(Organization record);

	List<Organization> selectByExample(OrganizationExample example);

	Organization selectByPrimaryKey(Integer id);

	int updateByExampleSelective(@Param("record") Organization record, @Param("example") OrganizationExample example);

	int updateByExample(@Param("record") Organization record, @Param("example") OrganizationExample example);

	int updateByPrimaryKeySelective(Organization record);

	int updateByPrimaryKey(Organization record);

	public Organization queryOrname(Integer id);

	List<Organization> orpquery(@Param("name") String name);

	/**
	 * 根据员工的部门id查询数据
	 * 
	 * @param id
	 * @return
	 */
	Organization selectById(Integer id);

}